home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / railway-line.swf / scripts / DefineButton2_261 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2005-09-29  |  490 b   |  19 lines

  1. on(release){
  2.    this._visible = false;
  3.    if(_root.lives_remaining > 0)
  4.    {
  5.       _root.train_crash_timer_running = false;
  6.       if(_root.bombs.bombs_remaining_count == 0)
  7.       {
  8.          _root.bombs.bombs_remaining_count = 3;
  9.          _root.bombs_remaining_text = "x" + _root.bombs.bombs_remaining_count;
  10.          _root.bombs.do_add_next_bomb_tile();
  11.       }
  12.       _root.car_generator_MC.do_reset_train();
  13.    }
  14.    else
  15.    {
  16.       _root.gotoAndPlay("game_over");
  17.    }
  18. }
  19.